package dk.hewison.client.mvc;

/**
 * @author John Hewison (creator)
 * @author $LastChangedBy: john.hewison $ $LastChangedDate: 2009-02-01 11:47:00 +0000 (Sun, 01 Feb 2009) $
 * @version $Revision: 57 $
 */
public abstract class ObjectSelectAction<T> extends AbstractAction {
    private T t;

    protected ObjectSelectAction(int id, Controller controller, String text, String activeTooltip, String disabledTooltip,
                                 T t) {
        super(id, controller, text, activeTooltip, disabledTooltip);
        this.t = t;
    }

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }

    public void doExecute() {
        selected(t);
    }

    public abstract void selected(T t);
}
